# !/usr/bin/env python
# -*-coding:utf-8 -*-

"""
# File       : qqq.py
# Time       ：2024/9/26 14:21
# Author     ：luoyuqi
# version    ：python 3.11.2
# Description：
"""

# import termcolor
from nicegui import ui, app

from mygo import MyGo

mgo = MyGo()
ui.button(icon="close").props("flat round dense")


def on_startup_handle():
    app.add_static_files("/tabulator", "./img")


# def on_shutdown_handle():
#     print(termcolor.colored(f"服务即将关闭", color="red", on_color=None, attrs=None))


# app.on_shutdown(on_shutdown_handle)
# app.on_startup(on_startup_handle)

ui.run(port=7267, favicon="🍺", reload=True)
